package com.iheima.branch;

import java.util.Scanner;

public class if_else {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.print("请输入一个数字：");
        int sex = sc.nextInt();
        switch(sex){
            case 1: System.out.println("你好，先生！"); break;
            case 2: System.out.println("你好，女士！"); break;
            default: System.out.println("你好，小姐！");
        }
    }
}
